<?php

namespace app\common\model;

use think\Model;

class ConsultItem extends Model
{
    public static $source = [
        '原创',
        '转载'
    ];

    // 返回键
    public function getSourceKeyAttr($value)
    {
        $source = array_search($value, self::$source);
        return $source;
    }
}
